﻿using System;
[assembly: log4net.Config.XmlConfigurator(Watch = true)]
namespace Restaurant.Common
{
    public class Log<T> where T : class
    {
        private static log4net.ILog _log = log4net.LogManager.GetLogger(typeof(T));
        public static void Info(object Message)
        {
            _log.Info(Message);
        }
        public static void Debug(object Message)
        {
            _log.Debug(Message);
        }
        public static void Error(Exception ex, object Message)
        {
            _log.Error(Message, ex);
        }
        public static void Error(object Message)
        {
            _log.Error(Message);
        }
    }
}
